<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>tango.text.Ascii</title>
  <link href="./css/style.css" rel="stylesheet" type="text/css"/>
  <!-- <link href="./img/icon.png" rel="icon" type="image/png"/> -->
  <script type="text/javascript" src="./js/jquery.js"></script>
  <script type="text/javascript" src="./js/modules.js"></script>
  <script type="text/javascript" src="./js/quicksearch.js"></script>
  <script type="text/javascript" src="./js/navigation.js"></script>
  <!--<script type="text/javascript" src="./js/jquery.treeview.js"></script>-->
  <script type="text/javascript">
    var g_moduleFQN = "tango.text.Ascii";
  </script>
  
</head>
<body>
<div id="content">
  <h1><a href="./htmlsrc/tango.text.Ascii.html" class="symbol">tango.text.Ascii</a></h1>
  
<p class="sec_header">License:</p>BSD style: see <a href="http://www.dsource.org/projects/tango/wiki/LibraryLicense">license.txt</a>
<p class="sec_header">Version:</p>Dec 2006: Initial release
<p class="sec_header">Author:</p>Kris
<p class="bl"/>
        Placeholder for a selection of ASCII utilities. These generally will
        not work with utf8, and cannot be easily extended to utf16 or utf32
<dl>
<dt class="decl">char[] <a class="symbol _function" name="toLower" href="./htmlsrc/tango.text.Ascii.html#L38" kind="function" beg="38" end="52">toLower</a><span class="params">(char[] <em>src</em>, char[] <em>dst</em> = null)</span>; <a title="Permalink to this symbol" href="#toLower" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.text.Ascii.html#L38">#</a></dt>
<dd class="ddef">
<div class="summary">Convert to lowercase. Returns the converted content in dst,
        performing an in-place conversion if dst is null</div></dd>
<dt class="decl">char[] <a class="symbol _function" name="toUpper" href="./htmlsrc/tango.text.Ascii.html#L61" kind="function" beg="61" end="75">toUpper</a><span class="params">(char[] <em>src</em>, char[] <em>dst</em> = null)</span>; <a title="Permalink to this symbol" href="#toUpper" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.text.Ascii.html#L61">#</a></dt>
<dd class="ddef">
<div class="summary">Convert to uppercase. Returns the converted content in dst,
        performing an in-place conversion if dst is null</div></dd>
<dt class="decl">int <a class="symbol _function" name="icompare" href="./htmlsrc/tango.text.Ascii.html#L83" kind="function" beg="83" end="94">icompare</a><span class="params">(char[] <em>s1</em>, char[] <em>s2</em>)</span>; <a title="Permalink to this symbol" href="#icompare" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.text.Ascii.html#L83">#</a></dt>
<dd class="ddef">
<div class="summary">Compare two char[] ignoring case. Returns 0 if equal</div></dd>
<dt class="decl">int <a class="symbol _function" name="compare" href="./htmlsrc/tango.text.Ascii.html#L103" kind="function" beg="103" end="114">compare</a><span class="params">(char[] <em>s1</em>, char[] <em>s2</em>)</span>; <a title="Permalink to this symbol" href="#compare" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.text.Ascii.html#L103">#</a></dt>
<dd class="ddef">
<div class="summary">Compare two char[] with case. Returns 0 if equal</div></dd>
<dt class="decl">int <a class="symbol _function" name="isearch" href="./htmlsrc/tango.text.Ascii.html#L127" kind="function" beg="127" end="179">isearch</a><span class="params">(in char[] <em>src</em>, in char[] <em>pattern</em>)</span>; <span class="attrs">[<span class="stc">static</span>]</span> <a title="Permalink to this symbol" href="#isearch" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.text.Ascii.html#L127">#</a></dt>
<dd class="ddef">
<div class="summary">Return the index position of a text pattern within src, or
        pattern.length upon failure.</div>
This is a case-insensitive search (with thanks to Nietsnie)</dd></dl>
</div>
<div id="footer">
  <p>Copyright (c) 2006 Kris Bell. All rights reserved</p>
  <p>Page generated by <a href="http://code.google.com/p/dil">dil</a> on Fri Dec 26 04:04:14 2008. Rendered by <a href="http://code.google.com/p/dil/wiki/Kandil">kandil</a>.</p>
</div>
</body>
</html>